package inter_8;

/**
 * @classname:Interface1Test
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/5 17:15
 * @version: 0.1
 * @since:1.8
 */
public class Interface1Test {
    public static void main(String[] args) {
        Interface1 interface1 =(num)->{
           if(num<0){
               return 20;
           }else if(num>120){
               return 20;
           }
           return num;
        };

        System.out.println(interface1.age(10));
    }
}
